strengur = input("Skammstöfun: ")

rett = True

if len(strengur) != 7:
	rett = False

for x in range(3):
	if strengur[x].islower():
		rett = False
		
for x in range(3, 7):
	if not strengur[x].isdigit():
		rett = False
		
if rett:
	print("Rétt skammstöfun")
else:
	print("Röng skammstöfun")
